import {ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot} from "@angular/router";

export class PermissionGuard implements CanActivate {
  canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean {
    const flag = false;
    if (!flag) {
      alert("没有权限")
    }
    return false;
  }
}
